﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleMaster.Data
{
    class Notes
    {
        public List<Note> AllNotes;

        public int Length;

        public Notes()
        {
            AllNotes = new List<Note>();
        }

        public void Refresh()
        {
            foreach(var note in AllNotes)
            {
                note.Position -= 1;
            }
        }

        public void TestAddNotes()
        {
            var n1 = new Note();
            n1.Lenth = 0;
            n1.Rail = Rails.Key2;
            n1.Position = 10;
            var n2 = new Note();
            n2.Lenth = 4;
            n2.Rail = Rails.Key4;
            n2.Position = 25;

            AllNotes.Add(n1);
            AllNotes.Add(n2);

            Length = 30;
        }

        
    }

    class Note
    {
        public Rails Rail { get; set; }
        public int Position { get; set; }
        public int Lenth { get; set; }
    }

    enum Rails
    {
        Key1, Key2, Key3, Key4
    }
}
